import { $get, $post } from '@/request/api';

// github列表
export function fetchGithubUserList(params) {
  return $get('/github_user/list', params);
}

// github登录
export function fetchGithubLogin(code: any) {
  return $post(`/github_user/login`, { code },);
}

// 绑定github
export function fetchBindGithub(code: any) {
  return $post(`/github_user/bind_github`, { code });
}

// 取消绑定github
export function fetchCancelBindGithub() {
  return $post(`/github_user/cancel_bind_github`);
}
